/* 
 * File:   ImageSaver.cpp
 * Author: Guilherme Monteiro
 * 
 */

#include "../headers/ImageSaver.h"

ImageSaver::ImageSaver(IplImage* img, string path) {
    this->image = img;
    this->path = path;
}

ImageSaver::ImageSaver(const ImageSaver& orig) {
}

ImageSaver::~ImageSaver() {
}

/**
 * Save the image in referred path.
 */
void ImageSaver::save() {
    cvSaveImage(path.c_str(), this->image);
}

